package com.qdu.servlet;

import com.qdu.service.impl.LogRemarkServiceImpl;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 删除日志评论
 *
 * @author Lenovo
 */
@WebServlet("/dlrs")
public class deleteLogRemarkServlet extends HttpServlet{

    LogRemarkServiceImpl logremarkserviceimpl=new LogRemarkServiceImpl();
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String id=req.getParameter("id");
        String logid=req.getParameter("logid");
        int rows=logremarkserviceimpl.deleteThisRemark(id);
        resp.sendRedirect("msols?id="+logid);
    }

}
